/*
 * CAlarmObject.h
 *
 *  Created on: Apr 15, 2009
 *      Author: Cedric
 */

#ifndef CALARMOBJECT_H_
#define CALARMOBJECT_H_

//includes
#include <ASShdAlarm.h> 
#include <ASShdDefs.h> 


class CAlarmObject : public CBase
	{
public:
	static CAlarmObject* NewL(TASShdAlarm* aAlarm);
	static CAlarmObject* NewLC(TASShdAlarm* aAlarm);
	virtual ~CAlarmObject();
	
	void SetNextDueTime( TTime aTime );
	void SetRepeatDefinition( TAlarmRepeatDefinition aDef );
	void SetMessage( TDesC* aMessage );
	
	TDesC* AlarmId();
	TDesC* NextDueTimeL();
	TDesC* RepeatDefinition();
	TDesC* Message();
	
	TASShdAlarm* Alarm();

private:
	CAlarmObject();
	void ConstructL(TASShdAlarm* aAlarm);
	
private:
	TASShdAlarm* iAlarm;
	};

#endif /* CALARMOBJECT_H_ */
